/*****************************************************************************
 *
 * 作  者 : 杨兵 * 创建时间 : 2020/12/13 12:36:03 *
 * Copyright (C) 2008 - 鹏业软件公司
 *
 *****************************************************************************/

import {DataPacket} from 'pengesoft-ng-lib';

/***简历信息表
 */
export class Resume extends DataPacket {
  Id: number; // 序号
  JobId: string; // 投递岗位编号
  Name: string; // 姓名
  Education: string; // 学历
  Tel: string; // 联系电话
  Email: string; // 个人邮箱
  InfoSource: string; // 招聘信息来源
  ApplyWay: string; // 应聘方式：null自主、内推码
  ApplyType: number; // 应聘类型：1校招、2社招、3猎头
  ApplyStatus: number; // 应聘状态/阶段：1初筛、2初试、3复、4加、5待入职、6拒绝、7回拒 8已经入职
  ResumeFile: string; // 简历文件路径
  Remarks: string; // 备注

  constructor(options: {
    Id?: number;
    JobId?: string;
    Name?: string;
    Education?: string;
    Tel?: string;
    Email?: string;
    InfoSource?: string;
    ApplyWay?: string;
    ApplyType?: number;
    ApplyStatus?: number;
    ResumeFile?: string;
    Remarks?: string;
  } = {}) {
    super();
    this.Id = !options.Id ? 0 : Number.parseFloat(options.Id.toString());
    this.JobId = options.JobId || '';
    this.Name = options.Name || '';
    this.Education = options.Education || '';
    this.Tel = options.Tel || '';
    this.Email = options.Email || '';
    this.InfoSource = options.InfoSource || '';
    this.ApplyWay = options.ApplyWay || '';
    this.ApplyType = !options.ApplyType ? 0 : Number.parseFloat(options.ApplyType.toString());
    this.ApplyStatus = !options.ApplyStatus ? 0 : Number.parseFloat(options.ApplyStatus.toString());
    this.ResumeFile = options.ResumeFile || '';
    this.Remarks = options.Remarks || '';
  }
}
